<template>
  <el-config-provider :locale="locale">
    <slot name="app"></slot>
    <router-view></router-view>
  </el-config-provider>
</template>

<script>

import { onMounted } from "vue";
import { getCurrentInstance } from 'vue'
import { ElConfigProvider } from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn';

export default {
  name: 'App',
  components: {
    [ElConfigProvider.name]: ElConfigProvider,
  },
  setup() {
    let locale = zhCn;
    //console.log(11111111)
    onMounted(() => {
      //console.log(22222222)
      let { proxy } = getCurrentInstance()
      //console.log(proxy)
    })
    
    return {
      locale,
    }
  },
  mounted() { },
};
</script>

<style>
#app {
  height: 100%;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow-x: hidden;
}

/* 页面切换动画 */
.router-view-enter-active,
.router-view-leave-active {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.router-view-enter-from {
  opacity: 0;
  transform: translateX(30px);
}

.router-view-leave-to {
  opacity: 0;
  transform: translateX(-30px);
}

/* 全局加载动画 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #00f2f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.page-position a,
.page-position .el-breadcrumb__inner,
.page-position .el-breadcrumb__separator {
  color: #5e5e5e !important;
  font-size: 13px;
}

.el-loading-mask {
  background-color: transparent;
}

.el-pagination.is-background.el-pagination--small .btn-next,
.el-pagination.is-background.el-pagination--small .btn-prev,
.el-pagination.is-background.el-pagination--small .el-pager li {
  width: 36px;
  height: 36px;
}

#app .el-pagination.is-background .el-pager li:not(.is-disabled).is-active {
  background: rgba(0, 72, 143, 1);
}

#app .el-button--primary {
  background-color: rgba(0, 72, 143, 1);
  border-color: rgba(0, 72, 143, 1);
  color: white;
}

#app .el-button--warning {
  background-color: #ffcc00;
  border-color: #ffcc00;
}

#app .el-button--danger {
  background-color: #e47471;
  border-color: #e47471;
}

#app .el-button--success {
  background-color: #169bd5;
  border-color: #169bd5;
}

.page-content {
  width: calc(100% - 3px);
  height: 96.8%;
  margin: 0.8% 0 0.8% 0;
  border: 1px solid #113479;

}

.contentLeft {
  width: 220px;
  float: left;
  height: 100%;
  /* padding-top: 25px; */
  background: white;
  border-right: 1px solid rgba(204, 204, 204, 1);
}


.contentLeft .el-menu-item,
.contentLeft .el-sub-menu__title {
  padding: 0 0 0 20px !important;
  font-size: 16px;
  color: #666666;
  /* text-align: center; */
  width: calc(100% - 20px);
  display: inline-block;
  height: 45px;
  line-height: 45px;
  box-sizing: unset;
  position: relative;
}

.contentLeft .el-sub-menu .el-menu li {
  padding-left: 40px !important;
  width: calc(100% - 40px);
}

.contentLeft .el-sub-menu .el-icon {
  right: -75px;
}

.contentLeft .el-menu-item:hover {
  background: transparent;
  opacity: 0.6;
}

.contentLeft .el-menu-item.is-active {
  background: rgba(242, 242, 242, 1);
  color: rgba(0, 72, 143, 1);
  /* background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 100% 100%; */
}



.tableBox {
  /* overflow: auto; */
  width: calc(100% - 22px);
  height: auto;
  margin: 0 10px 10px 10px;
}

.el-table__body-wrapper,
.el-scrollbar__wrap,
.el-scrollbar {
  height: auto !important;
}


.color-item {
  flex: 1;
  font-size: 16px;
  margin-left: 10px;
  height: 56px;
  position: relative;
  top: 50%;
  margin-top: -28px;
}

.color-txt {
  color: white;
  font-size: 14px;
  padding-top: 8px;
}



.el-dialog__header {
  padding: 0 0 0 15px;
  margin: 0;
  /* border-left: 5px solid rgba(0, 72, 143, 1); */
  height: 0;
}

.el-dialog__title {
  color: #333;
}

.el-dialog__headerbtn {
  height: 40px;
  width: 40px;
}

.el-dialog__headerbtn .el-dialog__close {
  color: #333;
}

.el-dialog__body {
  font-size: 13px;
  /* color: white; */
  /* height: calc(100% - 100px); */
  /* display: flex; */
  /* flex-flow: column nowrap; */
  overflow: auto;
  padding: 0;

  max-height: 600px;
}



.el-table-fixed-column--right {
  opacity: 1;
}

.upload-box {
  display: inline-flex;
}


.text-l .el-input__inner {
  text-align: left !important;
}

.el-tabs__item {
  color: #666 !important;
}

.el-tabs__item.is-active {
  color: rgba(0, 72, 143, 1) !important;
}

.el-tabs__active-bar {
  background-color: rgba(0, 72, 143, 1);
}
</style>
